package st.business.tepth.business.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;

/**
 * @author zhangyu
 * @date 2019/2/13
 */
public class RepairTaskBean{

    /**
     * repair_id : 3
     * gmt_create : 2019-03-04 19:47:22
     * vehicle_series_name : 发动机系
     * repair_task_user_state : 0
     * faultPhenomenonList : [{"faultDiagnosticList":[],"commonFaultDiagnosticList":[],"operate_user_id":null,"name":"储气筒漏气","alias":null,"vehicle_series_id":1,"id":3,"describes":null,"operate_time":null}]
     * sys_fault_id : 3
     * workerList : [{"user_name":"张三","job_no":"02311111"},{"user_name":"李四","job_no":"02322222"},{"user_name":"王二","job_no":"02333333"},{"user_name":"冉岸","job_no":"20000085"},{"user_name":"李世健","job_no":"20100787"}]
     * vehicle_series_id : 1
     * check_status : 1
     * is_return : 0
     * id : 1
     * state : 0
     * add_time : 2019-03-04 19:47:21
     */

    private int repair_id;
    //0-未确认诊断未提交方案 1-已确认诊断未提交方案 2-已确认诊断已提交方案 3-作业已完成
    private int my_status;
    private String gmt_create;
    private String vehicle_series_name;
    private int repair_task_user_state;
    private String sys_fault_id;
    private int vehicle_series_id;
    private int check_status;
    private int is_return;
    private int id;
    private int state;
    private String add_time;
    //故障
    private ArrayList<FaultPhenomenonListBean> faultPhenomenonList;
    //作业人
    private ArrayList<PersonBean> workerList;
    private ArrayList<CategoryBean> categoryList;

    public ArrayList<CategoryBean> getCategoryList() {
        return categoryList;
    }

    public void setCategoryList(ArrayList<CategoryBean> categoryList) {
        this.categoryList = categoryList;
    }

    public int getMy_status() {
        return my_status;
    }

    public void setMy_status(int my_status) {
        this.my_status = my_status;
    }

    public int getRepair_id() {
        return repair_id;
    }

    public void setRepair_id(int repair_id) {
        this.repair_id = repair_id;
    }

    public String getGmt_create() {
        return gmt_create;
    }

    public void setGmt_create(String gmt_create) {
        this.gmt_create = gmt_create;
    }

    public String getVehicle_series_name() {
        return vehicle_series_name;
    }

    public void setVehicle_series_name(String vehicle_series_name) {
        this.vehicle_series_name = vehicle_series_name;
    }

    public int getRepair_task_user_state() {
        return repair_task_user_state;
    }

    public void setRepair_task_user_state(int repair_task_user_state) {
        this.repair_task_user_state = repair_task_user_state;
    }

    public String getSys_fault_id() {
        return sys_fault_id;
    }

    public void setSys_fault_id(String sys_fault_id) {
        this.sys_fault_id = sys_fault_id;
    }

    public int getVehicle_series_id() {
        return vehicle_series_id;
    }

    public void setVehicle_series_id(int vehicle_series_id) {
        this.vehicle_series_id = vehicle_series_id;
    }

    public int getCheck_status() {
        return check_status;
    }

    public void setCheck_status(int check_status) {
        this.check_status = check_status;
    }

    public int getIs_return() {
        return is_return;
    }

    public void setIs_return(int is_return) {
        this.is_return = is_return;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getAdd_time() {
        return add_time;
    }

    public void setAdd_time(String add_time) {
        this.add_time = add_time;
    }

    public ArrayList<FaultPhenomenonListBean> getFaultPhenomenonList() {
        return faultPhenomenonList;
    }

    public void setFaultPhenomenonList(ArrayList<FaultPhenomenonListBean> faultPhenomenonList) {
        this.faultPhenomenonList = faultPhenomenonList;
    }

    public ArrayList<PersonBean> getWorkerList() {
        return workerList;
    }

    public void setWorkerList(ArrayList<PersonBean> workerList) {
        this.workerList = workerList;
    }

    public static class FaultPhenomenonListBean implements Parcelable {
        /**
         * faultDiagnosticList : []
         * commonFaultDiagnosticList : []
         * operate_user_id : null
         * name : 储气筒漏气
         * alias : null
         * vehicle_series_id : 1
         * id : 3
         * describes : null
         * operate_time : null
         */

        private int repair_task_id;
        private int repair_id;
        private String name;
        private String alias;
        private int vehicle_series_id;
        private int id;
        private String describes;
        //系统推荐的诊断
        private ArrayList<DiagnoseBean> commonFaultDiagnosticList;
        //临时诊断
        private ArrayList<DiagnoseBean> faultDiagnosticTemporaryList;

        public int getRepair_task_id() {
            return repair_task_id;
        }

        public void setRepair_task_id(int repair_task_id) {
            this.repair_task_id = repair_task_id;
        }

        public int getRepair_id() {
            return repair_id;
        }

        public void setRepair_id(int repair_id) {
            this.repair_id = repair_id;
        }

        public ArrayList<DiagnoseBean> getFaultDiagnosticTemporaryList() {
            return faultDiagnosticTemporaryList;
        }

        public void setFaultDiagnosticTemporaryList(ArrayList<DiagnoseBean> faultDiagnosticTemporaryList) {
            this.faultDiagnosticTemporaryList = faultDiagnosticTemporaryList;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getAlias() {
            return alias;
        }

        public void setAlias(String alias) {
            this.alias = alias;
        }

        public int getVehicle_series_id() {
            return vehicle_series_id;
        }

        public void setVehicle_series_id(int vehicle_series_id) {
            this.vehicle_series_id = vehicle_series_id;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public Object getDescribes() {
            return describes;
        }

        public void setDescribes(String describes) {
            this.describes = describes;
        }

        public ArrayList<DiagnoseBean> getCommonFaultDiagnosticList() {
            return commonFaultDiagnosticList;
        }

        public void setCommonFaultDiagnosticList(ArrayList<DiagnoseBean> commonFaultDiagnosticList) {
            this.commonFaultDiagnosticList = commonFaultDiagnosticList;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeInt(this.repair_task_id);
            dest.writeInt(this.repair_id);
            dest.writeString(this.name);
            dest.writeString(this.alias);
            dest.writeInt(this.vehicle_series_id);
            dest.writeInt(this.id);
            dest.writeString(this.describes);
            dest.writeList(this.commonFaultDiagnosticList);
            dest.writeList(this.faultDiagnosticTemporaryList);
        }

        public FaultPhenomenonListBean() {
        }

        protected FaultPhenomenonListBean(Parcel in) {
            this.repair_task_id = in.readInt();
            this.repair_id = in.readInt();
            this.name = in.readString();
            this.alias = in.readString();
            this.vehicle_series_id = in.readInt();
            this.id = in.readInt();
            this.describes = in.readString();
            this.commonFaultDiagnosticList = new ArrayList<DiagnoseBean>();
            in.readList(this.commonFaultDiagnosticList, DiagnoseBean.class.getClassLoader());
            this.faultDiagnosticTemporaryList = new ArrayList<DiagnoseBean>();
            in.readList(this.faultDiagnosticTemporaryList, DiagnoseBean.class.getClassLoader());
        }

        public static final Parcelable.Creator<FaultPhenomenonListBean> CREATOR = new Parcelable.Creator<FaultPhenomenonListBean>() {
            @Override
            public FaultPhenomenonListBean createFromParcel(Parcel source) {
                return new FaultPhenomenonListBean(source);
            }

            @Override
            public FaultPhenomenonListBean[] newArray(int size) {
                return new FaultPhenomenonListBean[size];
            }
        };
    }


}
